package com.test;



import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

public class test1 {
    public static void main(String[] args) {
        //DisposeNinePatch.creatLargePic("D:\\2\\1\\1.9.png", 800, 400);

//        try {
//            ImgUtils.zoomImage("D:/2/1/9.png","D:/2/1/8.png",480,50);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
        try {
            BufferedImage bf = ImageIO.read(new File("D:/1.png"));
            ImageIO.write(bf.getSubimage(75,25,480,834), "png", new File("D:/2.png"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
